package com.chris.webService.impl;

import com.chris.webService.DemoWebService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;
import java.util.Date;

/**
 * Created by chris on 2019/2/3.
 */


@WebService(serviceName = "DemoService", // 与接口中指定的name一致
        targetNamespace = "http://service.chris.com", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.chris.webService.DemoWebService"// 接口地址
)
@Component
public class DemoWebServiceImpl implements DemoWebService {

    @Override
    public String sayHello(String user) {
        return user + "，现在时间：" + "(" + new Date() + ")";
    }
}
